package com.xsh.opensltest.plugin;

import org.simpleframework.xml.ElementList;
import java.util.List;

public class AarApplication {

    @ElementList(inline = true)
    private List<MetaData> metaDataList;

    public String getPluginName() {
        return getMetaValue("plugin_name");
    }

   /* public String getLayout() {
        return "ui.json";
    }*/

    public String getLibName(){return getMetaValue("plugin_libname");}
    private String getMetaValue(String name) {
        if (metaDataList != null) {
            for (MetaData meta : metaDataList) {
                if (name.equals(meta.getName())) {
                    return meta.getValue();
                }
            }
        }
        return null;
    }
    public String getHandlerName()
    {
        return getMetaValue("plugin_event_handler");
    }
}